package com.block.common.model.dto;

import cn.hutool.core.util.StrUtil;
import lombok.Data;

/**
 * 商户推送量，流量类型统计
 */
@Data
public class FlowCountDTO {

    public void setFlowType(String flowType){
        this.flowType = flowType;
        if (StrUtil.equals(flowType, "APP")){
            this.appNumber = 1;
        }else if(StrUtil.equals(flowType, "H5")){
            this.h5Number = 1;
        }else if(StrUtil.equals(flowType, "APIS")){
            this.apisNumber = 1;
        }else if(StrUtil.equals(flowType, "APIB")){
            this.apibNumber = 1;
        }
    }

    private String flowType;
    private String channelCode;
    private Integer infoId;
    private String infoName;

    private Integer appNumber;
    private Integer h5Number;
    private Integer apisNumber;
    private Integer apibNumber;
}
